<?php

class product extends CActiveRecord
{
	public static function model($className = __CLASS__ )
	{
		return parent::model($className);
	}
	
	public function relations()
	{
		return array(
			"pcategory" => array(self::BELONGS_TO, 'pcategory', 'pcategory_id'),
			"comments" => array(self::HAS_MANY, "pcomment", "product_id"),
			"user" => array(self::BELONGS_TO, "user", "create_user_id"),
		);
	}
	
	public function scopes()
	{
		return array(
		);
	}
}
